import Vue from 'vue'
import App from './App.vue'
import router from './router'

// 引入字体图标样式
import '@/styles/fonts/font.less'

import '@/styles/index.less'

import axios from 'axios'

// axios.defaults.baseURL = 'http://111.160.78.62:9931/api'
// axios.defaults.baseURL = 'http://111.160.78.62:9930/Cityscapeapi'//市容委
// axios.defaults.baseURL = 'http://localhost:63067/Cityscapeapi'//市容委
// axios.defaults.baseURL = 'http://localhost:63067/Companyapi'//作业公司-应县
// axios.defaults.baseURL = 'http://localhost:63067/CompanyapiDC'//作业公司-大厂
axios.defaults.baseURL = 'http://111.160.78.62:9932/CompanyapiDC' //作业公司-大厂
    // const MapName='天津市'
    // const MapName='朔州市应县'
const MapName = '廊坊市大厂县'
    //天津坐标
    // const DefaultPointX=117.2
    // const DefaultPointY=39.15
    //应县坐标
    // const DefaultPointX=113.2
    // const DefaultPointY=39.4
    // //大厂坐标
const DefaultPointX = 117.0335
const DefaultPointY = 39.8481

import {
    Container,
    Header,
    Aside,
    Main,
    Footer,
    Form,
    FormItem,
    Input,
    Button,
    Select,
    Option,
    Table,
    TableColumn,
    Switch,
    Cascader,
    Message,
    DatePicker,
    Radio,
    RadioGroup,
    Tree,
    TimePicker,
    Transfer,
    Checkbox,
    CheckboxGroup,
    Slider,
    Loading
} from 'element-ui'

import vdr from 'vue-draggable-resizable-gorkys'

// 导入默认样式
import 'vue-draggable-resizable-gorkys/dist/VueDraggableResizable.css'

import '@/styles/draggableResize.less'

Vue.component('vdr', vdr)

Vue.use(Container)
Vue.use(Header)
Vue.use(Aside)
Vue.use(Main)
Vue.use(Footer)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Button)
Vue.use(Select)
Vue.use(Option)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Switch)
Vue.use(Cascader)
Vue.use(DatePicker)
Vue.use(Radio)
Vue.use(RadioGroup)
Vue.use(Tree)
Vue.use(TimePicker)
Vue.use(Transfer)
Vue.use(Checkbox)
Vue.use(CheckboxGroup)
Vue.use(Slider)
Vue.use(Loading)

Vue.prototype.$Http = axios

Vue.prototype.$message = Message

Vue.config.productionTip = false

new Vue({
    router,
    render: h => h(App)
}).$mount('#app')

export default { MapName, DefaultPointX, DefaultPointY }